import request from "@/utils/Request";
import FieldVO from "@/bean/vo/FieldVO";

export default class FieldApi {

  public static getList(typeId: number) {
    return request<FieldVO[]>('/api/setting/field/getList', 'get', {typeId});
  }

  public static save(data: Partial<FieldVO>[]) {
    return request<string>('/api/setting/field/save', 'post', undefined, data);
  }

  public static delete(data: FieldVO['id'][]) {
    return request<string>('/api/setting/field/delete', 'delete', undefined, data);
  }

}
